package aaaAtiDslParser;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.jvyaml.YAML;

import com.attilax.core;
import com.attilax.io.pathx;
@SuppressWarnings("all")
public class AtiDslParser {

	/**
	 *
[
    [
    "let",
    "a",
    "vvvv"
    ],
    
    
    [
    "print",
    "a"
    ]
]
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
	
		
	
		List li = new ArrayList();
		li.add(new ArrayList() {

			{
				this.add("let");
				this.add("a");
				this.add("vvvv");
			}

		});
		li.add(new ArrayList() {

			{
				this.add("print");
				this.add("a");

			}

		});
		
	//	YAML.dump(li, new FileWriter( pathx.classPathParent_jensyegeor()+"/blogger/dsl1_gene.yaml") );
	
		
		//--------------
		String string = pathx.classPathParent_jensyegeor()+"/blogger/dsl1.yaml";
		Object data = YAML.load(new FileReader(string) );
		System.out.println(core.toJsonStrO88(data));
		System.out.println("---f");
	}
}
